<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$data = array(
			'uniacid'=>$_W['uniacid'],
			'tid'=>$_GPC['classid'],
			'goodsname'=>$_GPC['goodsname'],
			'titlepic'=>$_GPC['titlepic'],
			'price'=>$_GPC['price'],
			'summary'=>$_GPC['summary'],
			'details'=>$_GPC['details'],
			'grounding'=>$_GPC['grounding'],
			'pics'=>$_GPC['pics'],
			'orderid'=>$_GPC['orderid'],
		);
		$ins = pdo_insert('mii_ang_goods',$data);
		if($ins){
			$code = array('status'=>'1','msg'=>'保存成功');
			$code = json_encode($code);
			exit($code);
		}else{
			$code = json_encode(array('status'=>'2','保存失败'));
			exit($code);
		}
			
	}else{
		$code = json_encode(array('status'=>'2','msg'=>'没有操作权限'));
		exit($code);
	}
		
?>